﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%> 
  <title></title>

</head>

<body>

  <%@ include file="/WEB-INF/include/header.jsp"%>
  
  <%@ include file="/WEB-INF/include/menu.jsp"%>

  <div class="container main-content">

    <div class="panel panel-default x-panel x-panel-layout">

      <div class="panel-heading">
        <ol class="breadcrumb">
          <li><a href="${ctx.host}/content">内容管理</a></li>
          <li class="active">新闻数据</li>
          <li class="no-before pull-right" style="min-width: 65px;">
            <a onclick="window.history.back();"><i class="glyphicon glyphicon-arrow-left"></i>&nbsp;&nbsp;返回</a>
          </li>
        </ol>
      </div>

      <div class="panel-body">

        <div class="col-xs-2 x-panel-layout-left no-horizontal-padding">
          <%@ include file="/WEB-INF/include/submenu.jsp"%>
        </div>

        <div class="col-xs-10 x-panel-layout-right">

          <div class="x-breadcrumb-wrapper">
            <div class="x-breadcrumb clearfix">
              <h2><i class="glyphicon glyphicon-fire" title="新闻详情"></i>&nbsp;&nbsp;<span>新闻数据&nbsp;-&nbsp;新闻详情</span></h2>
            </div>
          </div>
          
          <div class="x-breadcrumb-wrapper top-margin-20">
            <div class="x-breadcrumb yellow clearfix">
              <h2><span>基本信息</span></h2>
              <a href="${ctx.host}/news/${news.id}/edit" data-target="#edit" data-toggle="modal" class="hover-no-text-decoration" style="position: absolute; right: 0px; top: 0px; margin-top: 10px; margin-right: 85px;" title="编辑">编辑信息</a>
              <a href="${ctx.host}/news/${news.id}/cover" data-target="#editCover" data-toggle="modal" class="hover-no-text-decoration" style="position: absolute; right: 0px; top: 0px; margin-top: 10px; margin-right: 10px;" title="编辑">修改封面</a>
            </div>
          </div> 
          
          <div class="form-horizontal bottom-margin-20">
            
            <div class="form-group">
              <label class="control-label col-xs-2">新闻标题：</label>
              <div class="col-xs-6 pull-left">
                <p class="form-control-static">${news.name}</p>
              </div>
            </div>
            
            <div class="form-group">
              <label class="control-label col-xs-2">新闻简介：</label>
              <div class="col-xs-6 pull-left">
                <p class="form-control-static">${news.summary}</p>
              </div>
            </div>
            
            <div class="form-group">
              <label class="control-label col-xs-2">新闻封面：</label>
              <div class="col-xs-8 pull-left">
                <p class="form-control-static">
                  <img src="${cloud.prod}/${news.cover}-0.6" style="max-width: 100%;"/>
                </p>
              </div>
            </div>
            
            <div class="form-group">
              <label class="control-label col-xs-2">新闻链接：</label>
              <div class="col-xs-8 pull-left">
                <p class="form-control-static">${news.link}</p>
              </div>
            </div>
            
            <div class="form-group">
              <label class="control-label col-xs-2">创建时间：</label>
              <div class="col-xs-6 pull-left">
                <p class="form-control-static">
                 <fmt:formatDate value="${news.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
                </p>
              </div>
            </div>

          </div>
        </div>
      </div>
   </div>
</div>

  <%@ include file="/WEB-INF/include/footer.jsp"%>
  <%@ include file="/WEB-INF/include/script.jsp"%>
  
  <d:resource root="${ctx.resource}/build" type="script" src="js/page/content/news/news-view.js">
    <script type="text/javascript">
      require(['page/content/news/news-view'],function(page){
          page.init();
      })
    </script>
  </d:resource>
  
</body>

</html>
